package com.wit.witmg.service;

import com.wit.witmg.entity.DeviceSession;
import com.wit.witmg.entity.TMonitep;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 电耗监测记录表 服务类
 * </p>
 *
 * @author bob
 * @since 2025-09-25
 */
public interface ITMonitepService extends IService<TMonitep> {

    void addConnection(String sbid, DeviceSession session);

    void handleDeviceMessage(String sbid, String receivedData);

    Object add(HttpServletRequest request, String json);

    Object get(HttpServletRequest request,Integer pid,Integer sid,Long dt0, Long dt1);

    DeviceSession getConnection(String sbid);

    void removeConnection(String sbid);

    Object sendCommandToDevice(String sbid, String command);

}
